.crm-sf-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
    color: #1c2730;
}

.crm-sf-page-header {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.crm-sf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #5d6b78;
    font-size: 0.9rem;
    line-height: 1.4;
}

.crm-sf-breadcrumb a {
    color: #0e6f8f;
    text-decoration: none;
}

.crm-sf-breadcrumb a:hover,
.crm-sf-breadcrumb a:focus {
    text-decoration: underline;
}

.crm-sf-page-header h1,
.crm-sf-pdp h1 {
    margin: 0;
    color: #17212b;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.crm-sf-kicker {
    margin: 0;
    color: #5d6b78;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-sf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.crm-sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #43515c;
    font-size: 0.92rem;
}

.crm-sf-toolbar span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #dce3e8;
    border-radius: 999px;
    background: #ffffff;
}

.crm-sf-category-nav,
.crm-sf-filter-shell {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #ffffff;
}

.crm-sf-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.crm-sf-section-heading h2,
.crm-sf-filter-shell h2 {
    margin: 0;
    color: #17212b;
    font-size: 1.05rem;
    line-height: 1.25;
}

.crm-sf-category-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.crm-sf-category-group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.crm-sf-category-group h3 {
    margin: 0;
    color: #43515c;
    font-size: 0.92rem;
    line-height: 1.3;
}

.crm-sf-category-list,
.crm-sf-subcategory-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crm-sf-subcategory-list {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e4ebef;
}

.crm-sf-category-list a,
.crm-sf-subcategory-list a,
.crm-sf-category-list span,
.crm-sf-subcategory-list span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    color: #17212b;
    font-size: 0.92rem;
    line-height: 1.25;
    text-decoration: none;
}

.crm-sf-category-list a:hover,
.crm-sf-category-list a:focus,
.crm-sf-subcategory-list a:hover,
.crm-sf-subcategory-list a:focus {
    color: #0e6f8f;
    text-decoration: underline;
}

.crm-sf-category-list .is-active>a,
.crm-sf-category-list .is-active>span,
.crm-sf-subcategory-list .is-active>a,
.crm-sf-subcategory-list .is-active>span {
    color: #0e6f8f;
    font-weight: 800;
}

.crm-sf-filter-shell p,
.crm-sf-muted {
    margin: 0;
    color: #5d6b78;
    font-size: 0.92rem;
    line-height: 1.45;
}

.crm-sf-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
    gap: 12px;
    align-items: end;
}

.crm-sf-filter-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.crm-sf-filter-form label span {
    color: #43515c;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.crm-sf-filter-form input,
.crm-sf-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #c8d2d9;
    border-radius: 6px;
    background: #ffffff;
    color: #17212b;
}

.crm-sf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-sf-active-filters span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f4ef;
    color: #285f49;
    font-size: 0.84rem;
    font-weight: 800;
}

.crm-sf-card {
    display: grid;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #ffffff;
}

.crm-sf-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #edf2f5;
}

.crm-sf-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-sf-media-placeholder {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(14, 111, 143, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(26, 117, 159, 0.12), rgba(71, 133, 110, 0.16)),
        repeating-linear-gradient(45deg, #eef3f6 0 10px, #e2eaee 10px 20px);
    color: #43515c;
    text-align: center;
}

.crm-sf-media-placeholder span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.crm-sf-media-placeholder strong {
    color: #17212b;
    font-size: 1.05rem;
    line-height: 1.1;
}

.crm-sf-media-placeholder--large strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.crm-sf-card--out-of-stock .crm-sf-card__media img,
.crm-sf-pdp--out-of-stock .crm-sf-gallery__stage img {
    filter: none;
    opacity: 1;
}

.crm-sf-stock-overlay {
    position: absolute;
    inset: 10px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    border: 3px solid #d32f2f;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.crm-sf-stock-overlay strong,
.crm-sf-stock-overlay small {
    display: inline-block;
    background: rgba(211, 47, 47, 0.96);
    color: #ffffff;
    margin: 0;
    padding: 6px 10px;
    line-height: 1.1;
    letter-spacing: 0.06em;
}

.crm-sf-stock-overlay strong {
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px 0 8px 0;
}

.crm-sf-stock-overlay small {
    display: none;
}

.crm-sf-stock-overlay--large {
    inset: 16px;
    border-width: 4px;
    border-radius: 14px;
}

.crm-sf-stock-overlay--large strong {
    font-size: 0.95rem;
    padding: 8px 12px;
}

.crm-sf-stock-overlay--large small {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
}

.crm-sf-card__body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.crm-sf-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.28;
    letter-spacing: 0;
}

.crm-sf-card__title a {
    color: #17212b;
    text-decoration: none;
}

.crm-sf-card__title a:hover,
.crm-sf-card__title a:focus {
    color: #0e6f8f;
    text-decoration: underline;
}

.crm-sf-card__brand,
.crm-sf-card__meta,
.crm-sf-card__taxonomy {
    margin: 0;
    color: #5c6973;
    font-size: 0.9rem;
    line-height: 1.35;
}

.crm-sf-card__availability,
.crm-sf-availability {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f4ef;
    color: #285f49;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
}

.crm-sf-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #122532;
    font-weight: 800;
}

.crm-sf-price--consult {
    color: #0e6f8f;
}

.crm-sf-price--consult span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #b9d7e3;
    border-radius: 999px;
    background: #eef8fb;
    font-size: 0.92rem;
}

.crm-sf-price del {
    color: #7b8791;
    font-weight: 500;
}

.crm-sf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.crm-sf-badge,
.crm-sf-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8f4ef;
    color: #285f49;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.crm-sf-badge--new {
    background: #e8f4ef;
    color: #285f49;
}

.crm-sf-badge--sale {
    background: #fff1d8;
    color: #a16307;
}

.crm-sf-badge--low_stock {
    background: #fff1d8;
    color: #a16307;
}

.crm-sf-badge--out_of_stock {
    background: #fae3df;
    color: #b02b2b;
}

.crm-sf-badge--default {
    background: #edf2f5;
    color: #43515c;
}

.crm-sf-state {
    display: grid;
    gap: 10px;
    max-width: 720px;
    padding: 28px;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #ffffff;
}

.crm-sf-state h1,
.crm-sf-state h2,
.crm-sf-state p {
    margin: 0;
}

.crm-sf-state--error {
    border-color: #f0c8c3;
    background: #fff7f5;
}

.crm-sf-pdp {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

.crm-sf-gallery {
    display: grid;
    gap: 12px;
}

.crm-sf-gallery__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #edf2f5;
}

.crm-sf-gallery__stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-sf-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}

.crm-sf-gallery__thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #edf2f5;
    cursor: pointer;
}

.crm-sf-gallery__thumb.is-active {
    border-color: #0e6f8f;
}

.crm-sf-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-sf-pdp__summary {
    display: grid;
    gap: 16px;
}

.crm-sf-description {
    color: #34434f;
    line-height: 1.65;
}

.crm-sf-button,
.crm-sf-search button,
.crm-sf-filter-form button,
.crm-sf-filter-clear,
.crm-sf-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: fit-content;
    padding: 0 16px;
    border: 1px solid #0e6f8f;
    border-radius: 6px;
    background: #0e6f8f;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.crm-sf-button:hover,
.crm-sf-button:focus,
.crm-sf-search button:hover,
.crm-sf-search button:focus,
.crm-sf-filter-form button:hover,
.crm-sf-filter-form button:focus,
.crm-sf-filter-clear:hover,
.crm-sf-filter-clear:focus,
.crm-sf-pagination__link:hover,
.crm-sf-pagination__link:focus {
    background: #0a5a75;
    color: #ffffff;
}

.crm-sf-detail-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.crm-sf-related {
    display: grid;
    gap: 18px;
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #dce3e8;
}

.crm-sf-section-heading--related {
    display: grid;
    justify-content: start;
    gap: 6px;
}

.crm-sf-section-heading--related h2 {
    margin: 0;
    color: #17212b;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    line-height: 1.1;
}

.crm-sf-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.crm-sf-detail-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #ffffff;
}

.crm-sf-detail-panel h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.crm-sf-definition-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.crm-sf-definition-list dt {
    color: #5c6973;
    font-weight: 700;
}

.crm-sf-definition-list dd {
    margin: 0;
}

.crm-sf-variant-list,
.crm-sf-taxonomy-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crm-sf-taxonomy-list a {
    color: #17212b;
    font-weight: 700;
    text-decoration: none;
}

.crm-sf-taxonomy-list a:hover,
.crm-sf-taxonomy-list a:focus {
    color: #0e6f8f;
    text-decoration: underline;
}

.crm-sf-variant-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.crm-sf-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crm-sf-search input {
    min-height: 42px;
    min-width: min(100%, 320px);
    padding: 0 12px;
    border: 1px solid #c8d2d9;
    border-radius: 6px;
}

.crm-sf-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.crm-sf-pagination__current {
    color: #5c6973;
    font-weight: 700;
}

@media (max-width: 960px) {

    .crm-sf-grid,
    .crm-sf-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .crm-sf-category-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-sf-pdp,
    .crm-sf-detail-band {
        grid-template-columns: 1fr;
    }

    .crm-sf-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .crm-sf-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 22px;
    }

    .crm-sf-grid,
    .crm-sf-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .crm-sf-card__body {
        padding: 12px;
    }

    .crm-sf-page-header h1,
    .crm-sf-pdp h1 {
        font-size: 2rem;
    }

    .crm-sf-toolbar {
        align-items: stretch;
        gap: 8px;
    }

    .crm-sf-toolbar span {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .crm-sf-definition-list {
        grid-template-columns: 1fr;
    }

    .crm-sf-category-groups {
        grid-template-columns: 1fr;
    }

    .crm-sf-filter-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {

    .crm-sf-grid,
    .crm-sf-related-grid {
        grid-template-columns: 1fr;
    }

    .crm-sf-search input,
    .crm-sf-search button {
        width: 100%;
    }

    .crm-sf-toolbar span {
        flex-basis: 100%;
    }
}

.crm-sf-app {
    display: grid;
    gap: 24px;
}

.crm-sf-page-header--shell {
    margin-bottom: 0;
}

.crm-sf-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.crm-sf-layout__sidebar,
.crm-sf-layout__content {
    display: grid;
    gap: 22px;
}

.crm-sf-filter-form--compact {
    grid-template-columns: minmax(0, 1fr) auto;
}

.crm-sf-detail-meta {
    margin: 0;
    color: #43515c;
    font-size: 0.92rem;
    line-height: 1.45;
}

.crm-sf-detail-meta--stack {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.crm-sf-state--loading {
    border-style: dashed;
}

@media (max-width: 960px) {
    .crm-sf-layout {
        grid-template-columns: 1fr;
    }

    .crm-sf-filter-form--compact {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DES Store Catalog Polish
   Ruta: /catalogo/, /categoria/, /buscar/
========================================================= */

body.crm-sf-route-catalog,
body.crm-sf-route-category,
body.crm-sf-route-search {
    background: #ffffff !important;
}

body.crm-sf-route-catalog #page,
body.crm-sf-route-category #page,
body.crm-sf-route-search #page,
body.crm-sf-route-catalog .site,
body.crm-sf-route-category .site,
body.crm-sf-route-search .site,
body.crm-sf-route-catalog .site-content,
body.crm-sf-route-category .site-content,
body.crm-sf-route-search .site-content,
body.crm-sf-route-catalog #content,
body.crm-sf-route-category #content,
body.crm-sf-route-search #content {
    background: #ffffff !important;
}

/* Ocultar textos heredados del tema en rutas del Store Front */
body.crm-sf-route-catalog .ast-breadcrumbs-wrapper,
body.crm-sf-route-category .ast-breadcrumbs-wrapper,
body.crm-sf-route-search .ast-breadcrumbs-wrapper,
body.crm-sf-route-catalog .entry-header,
body.crm-sf-route-category .entry-header,
body.crm-sf-route-search .entry-header,
body.crm-sf-route-catalog .entry-title,
body.crm-sf-route-category .entry-title,
body.crm-sf-route-search .entry-title,
body.crm-sf-route-catalog .page-title,
body.crm-sf-route-category .page-title,
body.crm-sf-route-search .page-title,
body.crm-sf-route-catalog .crm-sf-breadcrumb,
body.crm-sf-route-category .crm-sf-breadcrumb,
body.crm-sf-route-search .crm-sf-breadcrumb {
    display: none !important;
}

/* Contenedor general */
body.crm-sf-route-catalog #crm-store-front-app,
body.crm-sf-route-category #crm-store-front-app,
body.crm-sf-route-search #crm-store-front-app {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 64px;
    background: #ffffff;
}

/* Header del catálogo */
body.crm-sf-route-catalog .crm-sf-plp__header,
body.crm-sf-route-category .crm-sf-plp__header,
body.crm-sf-route-search .crm-sf-plp__header {
    margin: 0 0 28px;
    padding: 0;
    background: transparent;
}

body.crm-sf-route-catalog .crm-sf-plp__header h1,
body.crm-sf-route-category .crm-sf-plp__header h1,
body.crm-sf-route-search .crm-sf-plp__header h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* Layout listado + sidebar */
body.crm-sf-route-catalog .crm-sf-plp__layout,
body.crm-sf-route-category .crm-sf-plp__layout,
body.crm-sf-route-search .crm-sf-plp__layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* Sidebar */
body.crm-sf-route-catalog .crm-sf-plp__sidebar,
body.crm-sf-route-category .crm-sf-plp__sidebar,
body.crm-sf-route-search .crm-sf-plp__sidebar,
body.crm-sf-route-catalog .crm-sf-sidebar,
body.crm-sf-route-category .crm-sf-sidebar,
body.crm-sf-route-search .crm-sf-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Cards de filtro */
.crm-sf-filter-card,
.crm-sf-category-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.crm-sf-filter-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.crm-sf-filter-card h2,
.crm-sf-category-nav h2,
.crm-sf-sidebar-search h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.crm-sf-filter-clear {
    color: #0f7490;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.crm-sf-filter-clear:hover {
    text-decoration: underline;
}

/* Buscar productos en sidebar */
.crm-sf-sidebar-search {
    order: -10;
}

.crm-sf-sidebar-search form,
.crm-sf-sidebar-search .crm-sf-search,
.crm-sf-sidebar-search .crm-sf-search-bar {
    display: grid;
    gap: 10px;
}

.crm-sf-sidebar-search input[type="search"],
.crm-sf-sidebar-search input[type="text"],
.crm-sf-sidebar-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
}

.crm-sf-sidebar-search button,
.crm-sf-sidebar-search input[type="submit"] {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #0f7490;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.crm-sf-sidebar-search button:hover,
.crm-sf-sidebar-search input[type="submit"]:hover {
    filter: brightness(0.94);
}

/* Categorías nivel superior */
.crm-sf-category-nav__groups {
    display: grid;
    gap: 18px;
}

.crm-sf-category-group {
    display: grid;
    gap: 8px;
}

.crm-sf-category-group h3 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crm-sf-category-item {
    display: grid;
    gap: 7px;
}

.crm-sf-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.crm-sf-category-link:hover {
    background: #e0f2fe;
    color: #075985;
    transform: translateX(2px);
}

/* Subcategorías */
.crm-sf-subcategory-list {
    display: grid;
    gap: 4px;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
}

.crm-sf-subcategory-link {
    display: block;
    padding: 7px 8px;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.crm-sf-subcategory-link:hover {
    background: #f1f5f9;
    color: #0f7490;
}

/* Toolbar superior */
body.crm-sf-route-catalog .crm-sf-toolbar,
body.crm-sf-route-category .crm-sf-toolbar,
body.crm-sf-route-search .crm-sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

body.crm-sf-route-catalog .crm-sf-toolbar span,
body.crm-sf-route-category .crm-sf-toolbar span,
body.crm-sf-route-search .crm-sf-toolbar span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 8px 12px;
    font-size: 13px;
}

/* Grid más limpio */
body.crm-sf-route-catalog .crm-sf-grid,
body.crm-sf-route-category .crm-sf-grid,
body.crm-sf-route-search .crm-sf-grid {
    gap: 24px;
}

/* Responsive */
@media (max-width: 900px) {

    body.crm-sf-route-catalog #crm-store-front-app,
    body.crm-sf-route-category #crm-store-front-app,
    body.crm-sf-route-search #crm-store-front-app {
        padding: 26px 16px 52px;
    }

    body.crm-sf-route-catalog .crm-sf-plp__layout,
    body.crm-sf-route-category .crm-sf-plp__layout,
    body.crm-sf-route-search .crm-sf-plp__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .crm-sf-filter-card,
    .crm-sf-category-nav {
        border-radius: 16px;
        padding: 16px;
    }
}

/* =========================================================
   DES Store Catalog Header Cleanup
   Objetivo:
   - quitar palabra Catalogo visual del PLP
   - quitar breadcrumb Inicio / Catalogo
   - quitar textos tipo Tienda si vienen del shell/header del plugin
   - subir el layout del catalogo
========================================================= */

/* Quitar encabezado interno del plugin en catalogo/categoria/busqueda */
body.crm-sf-route-catalog .crm-sf-page-header,
body.crm-sf-route-category .crm-sf-page-header,
body.crm-sf-route-search .crm-sf-page-header,
body.crm-sf-route-catalog .crm-sf-page-header h1,
body.crm-sf-route-category .crm-sf-page-header h1,
body.crm-sf-route-search .crm-sf-page-header h1,
body.crm-sf-route-catalog .crm-sf-kicker,
body.crm-sf-route-category .crm-sf-kicker,
body.crm-sf-route-search .crm-sf-kicker,
body.crm-sf-route-catalog .crm-sf-breadcrumb,
body.crm-sf-route-category .crm-sf-breadcrumb,
body.crm-sf-route-search .crm-sf-breadcrumb {
    display: none !important;
}

/* Quitar titulos heredados del tema en rutas del catalogo */
body.crm-sf-route-catalog .entry-header,
body.crm-sf-route-category .entry-header,
body.crm-sf-route-search .entry-header,
body.crm-sf-route-catalog .entry-title,
body.crm-sf-route-category .entry-title,
body.crm-sf-route-search .entry-title,
body.crm-sf-route-catalog .page-title,
body.crm-sf-route-category .page-title,
body.crm-sf-route-search .page-title,
body.crm-sf-route-catalog .ast-breadcrumbs-wrapper,
body.crm-sf-route-category .ast-breadcrumbs-wrapper,
body.crm-sf-route-search .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* Quitar descripcion/lema tipo "Tienda" si viene como texto del header */
body.crm-sf-route-catalog .site-description,
body.crm-sf-route-category .site-description,
body.crm-sf-route-search .site-description,
body.crm-sf-route-catalog .ast-site-title-wrap .site-description,
body.crm-sf-route-category .ast-site-title-wrap .site-description,
body.crm-sf-route-search .ast-site-title-wrap .site-description,
body.crm-sf-route-catalog .ast-site-identity .site-description,
body.crm-sf-route-category .ast-site-identity .site-description,
body.crm-sf-route-search .ast-site-identity .site-description {
    display: none !important;
}

/* Reducir espacio superior despues de quitar Catalogo */
body.crm-sf-route-catalog .crm-sf-shell,
body.crm-sf-route-category .crm-sf-shell,
body.crm-sf-route-search .crm-sf-shell {
    padding-top: 18px !important;
}

body.crm-sf-route-catalog #crm-store-front-app,
body.crm-sf-route-category #crm-store-front-app,
body.crm-sf-route-search #crm-store-front-app {
    padding-top: 18px !important;
}

/* Alinear el catalogo con el header */
body.crm-sf-route-catalog .crm-sf-plp__layout,
body.crm-sf-route-category .crm-sf-plp__layout,
body.crm-sf-route-search .crm-sf-plp__layout {
    margin-top: 0 !important;
}

/* Si el plugin todavia imprime algun h1 dentro del header del PLP */
body.crm-sf-route-catalog .crm-sf-plp__header,
body.crm-sf-route-category .crm-sf-plp__header,
body.crm-sf-route-search .crm-sf-plp__header,
body.crm-sf-route-catalog .crm-sf-plp__header h1,
body.crm-sf-route-category .crm-sf-plp__header h1,
body.crm-sf-route-search .crm-sf-plp__header h1 {
    display: none !important;
}

/* =========================================================
   DES Store - Header normal en catalogo e internas
   Mantiene Home con cabecera transparente.
   Corrige logo/titulo montado encima del catalogo.
========================================================= */

/* En paginas internas, desactivar efecto visual de cabecera transparente */
body:not(.home).ast-theme-transparent-header .site-header,
body:not(.home).ast-theme-transparent-header #masthead,
body:not(.home) .site-header,
body:not(.home) #masthead {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #ffffff !important;
}

/* Barra principal blanca en catalogo e internas */
body:not(.home) .ast-primary-header-bar,
body:not(.home) .main-header-bar,
body:not(.home) .ast-above-header-bar,
body:not(.home) .ast-below-header-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

/* Mejorar orden visual del logo + nombre */
body:not(.home) .site-branding,
body:not(.home) .ast-site-identity,
body:not(.home) .site-header-primary-section-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

/* Reset de cualquier recorte anterior del logo */
body:not(.home) .custom-logo-link,
body:not(.home) .site-logo-img {
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Tamaño controlado del logo en catalogo */
body:not(.home) .custom-logo,
body:not(.home) .site-logo-img img,
body:not(.home) .custom-logo-link img {
    width: auto !important;
    max-width: 132px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

/* Nombre del sitio mas limpio */
body:not(.home) .site-title,
body:not(.home) .ast-site-title-wrap .site-title {
    margin: 0 !important;
    line-height: 1.1 !important;
}

body:not(.home) .site-title a,
body:not(.home) .ast-site-title-wrap .site-title a {
    color: #0f172a !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
}

/* Ocultar lema/descripciones bajo el logo */
body:not(.home) .site-description,
body:not(.home) .ast-site-title-wrap .site-description,
body:not(.home) .ast-site-identity .site-description {
    display: none !important;
}

/* Menu alineado y limpio */
body:not(.home) .main-header-menu .menu-link,
body:not(.home) .ast-builder-menu .menu-link {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

body:not(.home) .main-header-menu .menu-link:hover,
body:not(.home) .ast-builder-menu .menu-link:hover,
body:not(.home) .main-header-menu .current-menu-item>.menu-link,
body:not(.home) .ast-builder-menu .current-menu-item>.menu-link {
    color: #0e7490 !important;
}

/* Evitar que el contenido suba por debajo del header */
body:not(.home) .site-content,
body:not(.home) #content,
body:not(.home) .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Catalogo: bajar el contenido para que respire despues del header */
body.crm-sf-route-catalog #crm-store-front-app,
body.crm-sf-route-category #crm-store-front-app,
body.crm-sf-route-search #crm-store-front-app,
body.crm-sf-route-catalog .crm-sf-shell,
body.crm-sf-route-category .crm-sf-shell,
body.crm-sf-route-search .crm-sf-shell {
    padding-top: 36px !important;
}

/* Quitar cualquier titulo/encabezado interno que reaparezca */
body.crm-sf-route-catalog .crm-sf-page-header,
body.crm-sf-route-category .crm-sf-page-header,
body.crm-sf-route-search .crm-sf-page-header,
body.crm-sf-route-catalog .crm-sf-plp__header,
body.crm-sf-route-category .crm-sf-plp__header,
body.crm-sf-route-search .crm-sf-plp__header,
body.crm-sf-route-catalog .entry-header,
body.crm-sf-route-category .entry-header,
body.crm-sf-route-search .entry-header,
body.crm-sf-route-catalog .entry-title,
body.crm-sf-route-category .entry-title,
body.crm-sf-route-search .entry-title,
body.crm-sf-route-catalog .page-title,
body.crm-sf-route-category .page-title,
body.crm-sf-route-search .page-title,
body.crm-sf-route-catalog .crm-sf-breadcrumb,
body.crm-sf-route-category .crm-sf-breadcrumb,
body.crm-sf-route-search .crm-sf-breadcrumb,
body.crm-sf-route-catalog .crm-sf-kicker,
body.crm-sf-route-category .crm-sf-kicker,
body.crm-sf-route-search .crm-sf-kicker {
    display: none !important;
}

/* Ajuste responsive */
@media (max-width: 768px) {

    body:not(.home) .custom-logo,
    body:not(.home) .site-logo-img img,
    body:not(.home) .custom-logo-link img {
        max-width: 108px !important;
        max-height: 60px !important;
    }

    body:not(.home) .site-title a,
    body:not(.home) .ast-site-title-wrap .site-title a {
        font-size: 20px !important;
    }

    body.crm-sf-route-catalog #crm-store-front-app,
    body.crm-sf-route-category #crm-store-front-app,
    body.crm-sf-route-search #crm-store-front-app {
        padding-top: 24px !important;
    }
}