.toolbar.toolbar-products {
    border: 0;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-sorter.sorter {
    float: none;
    padding: 0;
    margin-left: auto;
}

.pages ul.items.pages-items {
    background: transparent;
    margin: 0;
    padding: 0;
}

.pages ul.items.pages-items li {
    margin: 0 !important;
}

p#toolbar-amount {
    margin: 0;
    padding: 0;
    float: none;
    width: 20%;
    text-align: left;
    font-size: 14px;
}

p#toolbar-amount span {
    font-size: 14px;
}

.products.wrapper~.toolbar .toolbar-amount,
.products.wrapper~.toolbar .sorter {
    display: block;
}

.page-products .toolbar .limiter {
    display: none !important;
}

.toolbar-products .pages {
    width: 20%;
}

.toolbar-products .pages {
    display: block;
}

.md-sidenav-right {
    width: 440px;
}

.cdz-sidebar-backface {
    background-color: rgba(0, 0, 0, 0.65);
}

.category-banner .banner-text {
    padding: 20px 14px;
}

.catalog-category-view .page-title-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 30px 10px 0;
}

.catalog-category-view .page-title-wrapper h1 {
    font-size: 40px;
    line-height: 40px;
    display: block;
    color: #242424;
    text-transform: none;
    font-weight: 500;
    margin: 0 0 30px 0;
}

.category-description {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 10px 0;
}

.category-description h2,
.catalog-category-view .page-main h2 {
    font-size: 32px;
    line-height: 34px;
    display: block;
    color: #242424;
    text-transform: none;
    font-weight: 500;
    margin: 35px 0 25px 0;
    font-family: "Fredoka", sans-serif !important;
    padding: 0;
}

.category-description>h2:first-child,
.category-description>.page-title-wrapper:first-child h2,
.category-description>.page-title-wrapper:first-child {
    margin-top: 0;
}

.category-description>.page-title-wrapper:first-child,
.category-description.no-margin .category-description.no-margin {
    padding: 0;
}

.category-description h2 span,
.catalog-category-view .page-main h2 span {
    font-family: "Fredoka", sans-serif !important;
    font-weight: 500 !important;
}

.category-description h3,
.catalog-category-view .page-main h3 {
    font-size: 32px;
    line-height: 34px;
    display: block;
    color: #242424;
    text-transform: none;
    font-weight: 500;
    margin: 35px 0 15px 0;
    font-family: "Fredoka", sans-serif !important;
    padding: 0;
}

.category-description h3 strong,
.catalog-category-view .page-main h3 strong {
    font-weight: 600;
}

.category-description h3 span,
.catalog-category-view .page-main h3 span {
    font-size: 17px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600;
    line-height: 28px;
    color: #242424;
}

.category-description p {
    font-size: 17px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    line-height: 28px;
    color: #242424;
    margin: 0 0 20px 0;
}

.category-description p strong {
    font-weight: 600;
}

.category-description ul {
    padding: 20px 40px !important;
}

.category-description>div,
.category-description p,
.catalog-category-view .page-main p {
    font-size: 17px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    line-height: 28px;
    color: #242424;
    margin: 0 0 20px 0;
}

.category-description ul,
.catalog-category-view .page-main ul {
    background: #f0f0f0;
    margin: 0 0 24px 0;
    border-radius: 4px;
    padding: 25px 20px 25px 45px;
    box-sizing: border-box;
}

.category-description ul li,
.catalog-category-view .page-main ul li {
    font-weight: 400;
    font-size: 16px !important;
    line-height: 24px !important;
    font-family: "Poppins", sans-serif !important;
    color: #242424 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.catalog-category-view .page-main ul li span,
.catalog-category-view table tr td span {
    font-family: "Poppins", sans-serif !important;
}

.catalog-category-view table tr td {
    font-size: 16px !important;
    line-height: 24px !important;
    font-family: "Poppins", sans-serif !important;
    color: #242424 !important;
    font-family: "Poppins", sans-serif !important;
}

.category-description ul li p,
.catalog-category-view .page-main ul li p {
    margin: 0;
}

.category-description ul li p strong,
.catalog-category-view .page-main ul li p strong {
    font-weight: 600;
}

.category-description strong,
.catalog-category-view .page-main strong {
    font-weight: 600;
}

.category-description p span,
.catalog-category-view .page-main p span {
    font-size: 17px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    line-height: 28px;
    color: #242424;
}


.category-x-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.category-x-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-x-box {
    width: 250px;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-x-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.category-x-box:hover {
    transform: scale(1.05);
}

.category-x-link {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.category-x-link:hover {
    color: #3498db;
}

.product-details {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 20px;
}

.product-details h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-details h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #34495e;
}

.product-details p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.product-details ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-details li {
    margin-bottom: 10px;
}

.category-heading {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
}

.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-box {
    width: 250px;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.category-box:hover {
    transform: scale(1.05);
}

.category-link {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #3498db;
}

.field.limiter-1 label a.action.primary {
    color: #fff !important;
    padding: 10px 15px;
}

/* Hide toolbar on Montesorri category */
body.categorypath-montessori-toys .toolbar.toolbar-products {
    display: none;
}

/* Hide toolbar on Montesorri category */

.desktop-image-banner,
.mobile-image-banner {
    display: none;
}

@media screen and (min-width: 768px) {
    .desktop-image-banner {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .mobile-image-banner {
        display: block;
    }
}

.page-layout-3columns .columns .sidebar-main {
    z-index: 0;
}

/* Category page banner css */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif
}

.hero-image {
    width: 100%;
    height: auto;
    display: block
}

.hero-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
    width: 800px;
    z-index: 2;
    color: #fff !important
}

.hero-text h2,
.hero-text h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
    margin: 0 0 14px
}

.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 700
}

.hero-text h4 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6
}

@media (max-width:600px) {
    .hero-text {
        top: 50%;
        padding: 0 12px;
        width: 95%
    }

    .hero-text h2 {
        font-size: 1.3rem;
        line-height: 1.35;
        margin-bottom: 0
    }

    .hero-text h4 {
        display: none
    }
}

@media only screen and (max-width: 768px) {
    .hero-text h2 {
        font-size: 2.5rem !important;
        font-weight: 700;
        line-height: 30px !important;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text .cta-btn-center {
        margin-top: 10px;
    }

    .hero-text .cta-btn-center span.cta-button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Category page banner css */

.category-shop-by-brands .page-title-wrapper h1 {
    text-align: center;
}

.toolbar.toolbar-products .field.limiter-1 {
    width: 20%;
}

/* Category page table content */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.comparison-table thead th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* ✅ Improved Mobile Table (Stacked & More Readable) */
@media screen and (max-width: 768px) {
    .table-container {
        display: block;
    }

    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
        display: block;
        width: 100%;
    }

    /* Hide table header */
    .comparison-table thead {
        display: none;
    }

    /* Each row as a card */
    .comparison-table tr {
        background: #fff;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    }

    /* Alternate row background */
    .comparison-table tr:nth-child(even) {
        background: #f9f9f9;
    }

    /* Improve cell structure */
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    /* Bold column headers for better visibility */
    .comparison-table td::before {
        content: attr(data-label) !important;
        font-weight: bold;
        text-transform: capitalize;
        color: #000;
        flex: 1;
        text-align: center;
    }

    /* Increase icon & text spacing */
    .comparison-table td span {
        flex: 1;
        text-align: right;
    }
}

/* Category page table content */

@media only screen and (max-width: 768px) {
    .catalog-category-view .page-title-wrapper h1 {
        font-size: 30px;
        line-height: 30px;
    }

    .category-description {
        width: 100%;
    }

    .full-width-image-banner {
        background-size: contain !important;
    }

    .toolbar.toolbar-products {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: start;
    }

    .toolbar.toolbar-products p#toolbar-amount {
        width: unset;
    }

    .toolbar.toolbar-products .pages {
        width: unset;
    }

    .toolbar.toolbar-products .field.limiter-1 {
        width: unset;
    }

    .toolbar-sorter.sorter {
        margin-left: unset;
    }

    .toolbar-sorter.sorter label.sorter-label {
        display: none;
    }

    .toolbar-sorter.sorter .sorter-options {
        width: 150px;
    }
}

@media only screen and (max-width: 767px) {
    .catalog-category-view table tr td h2 {
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 30px !important;
    }

    .category-description h2,
    .catalog-category-view .page-main h2 {
        font-size: 24px !important;
        line-height: 30px !important;
    }

    .catalog-category-view table tr td {
        font-size: 14px !important;
        line-height: 20px !important;
        font-family: "Poppins", sans-serif !important;
        color: #242424 !important;
        font-family: "Poppins", sans-serif !important;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        display: block;
        padding: 0 !important;
    }

    .category-description p span,
    .catalog-category-view .page-main p span,
    .category-description ul li,
    .catalog-category-view .page-main ul li {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .category-description>div,
    .category-description p,
    .catalog-category-view .page-main p {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .catalog-category-view table tr.mobilehide,
    .catalog-category-view table colgroup {
        display: none;
    }

    .catalog-category-view table tr:last-child td:nth-child(2) {
        margin: 30px 0 !important;
    }

    .catalog-category-view table tr td:before {
        content: attr(data-th);
        font-size: 24px !important;
        line-height: 30px !important;
        font-weight: 500;
        margin-bottom: 0px;
        display: block;
    }

    .category-part-wrapper p {
        font-size: 18px;
    }

    .category-description h3,
    .catalog-category-view .page-main h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .page-layout-1column .block.filter .block-title.filter-title strong {
        font-size: 16px !important;
        padding: 6px 30px;
    }

    .catalog-category-view .page-title-wrapper h1 {
        font-size: 30px;
        line-height: 30px;
        margin-bottom: 0;
    }

    .category-banner .full-width-image-banner {
        height: 200px;
        position: relative;
        margin: 0;
        background-size: cover !important;
        background-position: center !important;
    }

    div.category-description h2 {
        margin-top: 20px;
        margin-bottom: 5px;
    }

    .category-banner+h2+p {
        display: block;
    }

    .full-width-image-banner {
        height: 200px;
        position: relative;
        margin: 20px 0 0;
    }

    .sorter-options {
        width: auto;
    }
}



/* 17-06-2025 CSS */
/* Section Heading */
.category-heading {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Container holding all age tiles */
.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin: 30px auto;
    max-width: 1300px;
}

/* Individual tile wrapper */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Card box with image */
.category-box {
    width: 340px;
    padding: 28px;
    background-color: #fff;
    border-radius: 18px;
    border: 2px solid #eee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Image */
.category-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* Age label */
.category-link {
    font-size: 1.4em;
    font-weight: 700;
    color: #6c5ce7;
    margin-top: 14px;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* CTA (not clickable) */
.category-cta {
    font-size: 1.05em;
    color: #666;
    font-weight: 500;
    margin-top: 6px;
    font-style: italic;
    pointer-events: none;
}

@media (max-width: 768px) {
    .category-container {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        padding: 0 16px;
    }

    .category-box {
        width: 100%;
        max-width: 500px;
        padding: 26px;
    }

    .category-link {
        font-size: 1.3em;
    }

    .category-cta {
        font-size: 1.1em;
        margin-bottom: 14px;
    }
}

/* 17-06-2025 CSS */

.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #ffffff;
}

.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li {
  background: #fff;
  border-radius: 15px;
  text-align: center;
  padding: 25px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li:hover {
  border: 3px solid #59c4c5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Picture container to control zoom area */
.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li picture {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Logo image style */
.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Zoom cleanly */
.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li:hover img {
  transform: scale(1.05);
}

/* Text styles */
.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li p,
.catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout li h2 {
  margin-top: 18px;
  font-size: 18px !important;
  font-weight: bold;
  font-family: 'Fredoka', sans-serif;
  color: #242424;
}

/* Link and image box */
.catalog-category-view .category-part-wrapper.sk-brands-page a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-category-view .category-part-wrapper.sk-brands-page picture {
  border-radius: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .catalog-category-view .category-part-wrapper.sk-brands-page ul.grid-layout {
    grid-template-columns: 1fr;
  }
}
