/* theme.css - Theme Zagreus D1 */

/* Variables */
@import url("theme-variables.css");

/* PS_FEATURED_PRODUCTS, PS_SPECIALS, PS_NEWPRODUCTS, PS_BESTSELLERS */

.ps-featuredproducts-container,
.ps-specials-container,
.ps-newproducts-container,
.ps-bestsellers-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ps-featuredproducts-container h2,
.ps-specials-container h2,
.ps-newproducts-container h2,
.ps-bestsellers-container h2 {
    
    font-size: var(--zg-font-size-h2);
    color: var(--zg-color-text-primary);
    letter-spacing: -0.96px;
  line-height: normal;
  position: relative;
  font-style: normal;
  font-weight: 600;
  margin: 60px 0px 60px 0px;
  padding-left: 20px;
  text-transform: uppercase;

}

.ps-featuredproducts-container .products,
.ps-specials-container .products,
.ps-newproducts-container .products,
.ps-bestsellers-container .products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ps-featuredproducts-container .products .product,
.ps-specials-container .products .product,
.ps-newproducts-container .products .product,
.ps-bestsellers-container .products .product {
    width: calc((100% - 30px) / 4);
}

.ps-featuredproducts-container .link-container,
.ps-specials-container .link-container,
.ps-newproducts-container .link-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ps-featuredproducts-container .link-container a,
.ps-specials-container .link-container a,
.ps-newproducts-container .link-container a,
.ps-bestsellers-container>a {
    text-decoration: none;
    font-size: var(--zg-font-size-body);
    color: var(--zg-color-white);
    font-weight: var(--zg-font-weight-semibold);
    border-radius: 5px;
    background-color: var(--zg-color-tertiary);
    padding: 10px;
}

.ps-bestsellers-container>a {
    margin: auto;
}

.ps-featuredproducts-container .link-container a:hover,
.ps-specials-container .link-container a:hover,
.ps-newproducts-container .link-container a:hover,
.ps-bestsellers-container>a:hover {
    background-color: var(--zg-color-hover-tertiary);
}

/* FIN PS_FEATURED_PRODUCTS */

/* ANCHOS CONTENEDORES */

.container-full-width {
    width: 100% !important;
    max-width: 1920px !important;
    padding: 0px !important;
}

.container-width-standard {
    width: var(--zg-standard-width) !important;
    max-width: var(--zg-standard-max-width) !important;
    margin: auto !important;
    padding: 0px !important;
}

/* FIN ANCHOS CONTENEDORES */

/* HTML BLOCK DISPLAY FOOTER BEFORE */

/* Contenedor general del bloque HTML */
.wehtmlblock-container.wehtmlblock-displayFooterBefore {
    width: var(--zg-standard-width);
    max-width: var(--zg-standard-max-width);
    margin: 0 auto;
    padding: 40px 0;
}

/* Contenedor de beneficios */
.benefits-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* Cada beneficio */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 calc(25% - 30px);
    min-width: 250px;
}

/* Iconos */
.benefit-icon img {
    width: 40px;
    height: auto;
    display: block;
}

.wehtmlblock-image {
    width: 60px;
    height: auto;
    display: block;
}

/* Título del beneficio */
.text-container .benefit-title {
    font-size: var(--zg-font-size-h3);
    font-weight: var(--zg-font-weight-semibold);
    color: var(--zg-color-white);
    margin: 0;
}

/* Descripción */
.text-container .benefit-desc {
    margin: 2px 0 0;
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-regular);
    color: var(--zg-color-white);
}


/* HTML BLOCK DISPLAY FOOTER BEFORE */

/* BREADCRUMB */

#wrapper .breadcrumb {
    padding: 16px 0;
    width: var(--zg-standard-width);
    max-width: var(--zg-standard-max-width);
    margin: auto;
}

/* Ancho breadcrumb en "crear cuenta" y my-account */
#registration #wrapper .breadcrumb,
#my-account #wrapper .breadcrumb,
#identity #wrapper .breadcrumb,
#address #wrapper .breadcrumb,
#addresses #wrapper .breadcrumb,
#address #wrapper .breadcrumb,
#history #wrapper .breadcrumb,
#order-detail #wrapper .breadcrumb,
#order-slip #wrapper .breadcrumb,
#module-psgdpr-gdpr #wrapper .breadcrumb {
    width: 100%;
}

#registration #wrapper .breadcrumb ol {
    padding: 0;
}

/************************************/

#wrapper .breadcrumb ol {
    list-style: none;
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin: auto;
}

#wrapper .breadcrumb ol li {
    display: flex;
    gap: 12px;
}

#wrapper .breadcrumb ol li a {
    text-decoration: none;
}

#wrapper .breadcrumb ol li a:hover span {
    color: var(--zg-color-hover-tertiary);
}

#wrapper .breadcrumb ol li .forwardslash,
#wrapper .breadcrumb ol li span,
#wrapper .breadcrumb ol li a span {
    font-size: var(--zg-font-size-body-small);
    font-weight: var(--zg-font-weight-regular);
    line-height: 21px;
    color: var(--zg-color-text-primary);
    opacity: .8;
}

/**************/

/* MÓDULO FACETAS */

#search_filters_wrapper .title-filters {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-h3);
    font-weight: var(--zg-font-weight-bold);
}

#search_filters .close-filters {
    display: none;
}

#search_filters_wrapper {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.07), 0 6px 14px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: var(--zg-color-white);
    padding: 20px;
}

.clear-all-wrapper button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--zg-font-size-body-small);
    background: var(--zg-color-white);
}

.clear-all-wrapper button i {
    font-size: 1.8rem;
}

.facet {
    padding: 15px 20px;
    background: var(--zg-color-white);
    border-top: 1px solid #eee;
}

.facet .facet-title {
    margin-bottom: 10px;
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
}

.facet ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facet .facet-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.facet .facet-label:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(3px);
}

#search_filters .facet ul .facet-label .custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    top: 0;
}

.facet .custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estilo del "checkbox" visual */
.facet .custom-checkbox::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #bbb;
    background: var(--zg-color-white);
    transition: all 0.25s ease;
}

/* Ícono de check */
.facet .custom-checkbox .checkbox-checked {
    position: absolute;
    left: 2px;
    top: 1px;
    font-size: var(--zg-font-size-h3);
    font-weight: var(--zg-font-weight-bold);
    color: var(--zg-color-tertiary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Cuando está marcado */
.facet .custom-checkbox input:checked+span .checkbox-checked {
    opacity: 1;
}

/* Enlaces de texto */
.facet a.search-link {
    text-decoration: none;
    font-size: var(--zg-font-size-body);
    color: var(--zg-color-text-primary);
    transition: color 0.2s ease;
}

/* Cantidad */
.facet .magnitude {
    font-size: var(--zg-font-size-body-small);
    color: var(--zg-color-text-primary);
}

/* Control deslizante */
.facet .faceted-slider li p {
    font-size: var(--zg-font-size-body);
    color: var(--zg-color-text-primary);
}

#search_filters .faceted-slider .ui-slider .ui-slider-handle {
    width: 1rem;
}

/* --- Filtro de COLOR --- */

#search_filters .facet .custom-checkbox:has(.color)::before {
    content: none;
}

#search_filters .facet .custom-checkbox input[type="checkbox"] {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

#search_filters .facet .custom-checkbox input[type="checkbox"]+.color {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #bbb;
    box-sizing: border-box;
}

#search_filters .facet .custom-checkbox input[type="checkbox"]:checked+.color {
    border: 2px solid var(--zg-color-tertiary);
}

/******************/

/* MÓDULO MOSAICO */

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__cell {
    border-radius: 8px;
}

.wm-mosaic.wm-mosaic--design-3 {
    margin: 50px 0;
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__head {
    text-align: center;
}

.wm-mosaic.wm-mosaic--design-3 p {
    color: var(--zg-color-text-primary);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__title {
    font-size: var(--zg-font-size-h1);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__subtitle {
    font-size: var(--zg-font-size-h3);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__overlay.wm-mosaic__overlay--bottom-left {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.0) 60%);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content .wm-mosaic__img-title {
    font-size: var(--zg-font-size-h1);
    color: var(--zg-color-white);
	background: rgba(0,0,0,0.35);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content .wm-mosaic__img-subtitle {
    font-size: var(--zg-font-size-body-large);
    color: var(--zg-color-white);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__cell:hover .wm-mosaic__img {
    transform: scale(1.1);
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content {
    transition: height 0.6s ease;
    overflow: hidden;
    
}

.wm-mosaic.wm-mosaic--design-3 .wm-mosaic__cell:hover .wm-mosaic__content {
    height: 90px;
}


/* PAGINACIÓN */

.pagination {
    width: 100%;
    height: auto;
    margin: 30px auto;
    display: block !important;
}

.pagination .page-list {
    margin: 0;
    padding: 0;
    height: auto;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pagination .page-list li {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    gap: 10px;
    background-color: var(--zg-color-white);
    color: var(--zg-color-text-primary);
    justify-content: center;
    align-items: center;
}

.pagination .page-list li.current {
    background-color: var(--zg-color-secondary);
}

.pagination .page-list li a {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-regular);
    line-height: 24px;
    text-decoration: none;
}

.pagination .page-list li.current a {
    color: var(--zg-color-white);
}

.pagination .page-list li a.previous,
.pagination .page-list li a.previous i,
.pagination .page-list li a.next,
.pagination .page-list li a.next i {
    width: 2.4rem;
    height: 2.4rem;
}

/******************/

/* Página crear cuenta */

.page-registration #main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-registration #main .page-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 60%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.page-registration #main .page-header h1 {
    font-size: var(--zg-font-size-h1);
    font-weight: var(--zg-font-weight-bold);
    color: var(--zg-color-text-primary);
    margin: 0;
}

.register-form>p {
    font-size: var(--zg-font-size-body);
    color: var(--zg-color-text-primary);
    padding: 20px 0;
    margin: 0;
}

.register-form>p a {
    color: var(--zg-color-secondary);
    text-decoration: none;
    cursor: pointer;
}

.register-form>p a:hover {
    color: var(--zg-color-hover-primary);
    text-decoration: none;
    cursor: pointer;
}

/******************/

/* TRACKING INVITADOS */

#guest-tracking #main {
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 80%;
    margin: auto;
}

#guestOrderTrackingForm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 25px;
}

#guest-tracking #main h1,
#guest-tracking #main p {
    color: var(--zg-color-text-primary);
}

/* OTROS */

.text-uppercase {
    text-transform: uppercase;
}

#notifications ul {
    list-style: none;
}

#notifications ul li {
    font-size: var(--zg-font-size-body);
}

button.btn-primary,
a.btn-primary {
    border: none;
}

#checkout #_desktop_logo {
    text-align: center;
}

/* Medias */

@media only screen and (max-width: 768px) {

    /* Contenedores */
    .container-width-standard {
        width: 95% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    /* Módulo featuredproducts, specials y novedades*/
    .products {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .products .product {
        flex: 0 0 49%;
    }

    /* Filtros (módulo facetas) */
    #search_filters_wrapper {
        display: none;
    }

    #search_filters_wrapper.open-filter {
        display: block;
        position: absolute;
        top: 50px;
        z-index: 10;
        width: 95%;
    }

    #search_filters .close-filters {
        display: block;
        position: absolute;
        right: 6px;
        top: 6px;
        background-color: transparent;
    }

    /* Módulo mosaico */
    .wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content {
        height: auto;
    }

    .wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content .wm-mosaic__img-title {
        font-size: var(--zg-font-size-h3);
    }

    .wm-mosaic.wm-mosaic--design-3 .wm-mosaic__content .wm-mosaic__img-subtitle {
        font-size: var(--zg-font-size-body);
    }

    /* Tracking invitados */

    #guest-tracking #main {
        width: 100%;
    }

    #guest-tracking #main .page-footer {
        display: none;
    }

    /* Registro */
    #registration #wrapper .breadcrumb ol {
        padding: 0 20px;
    }

    #registration #main .page-content {
        width: 94%;
        border-radius: 7px;
    }
}

@media only screen and (max-width: 576px) {

    /* Módulo featuredproducts */
    .ps-featuredproducts-container .products,
    .ps-specials-container .products,
    .ps-newproducts-container .products,
    .ps-bestsellers-container .products {
        justify-content: space-between;
    }

    .ps-featuredproducts-container .products .product,
    .ps-specials-container .products .product,
    .ps-newproducts-container .products .product,
    .ps-bestsellers-container .products .product {
       
        flex: 0 0 100%;
    }
}

@media only screen and (max-width: 425px) {
    #wrapper .breadcrumb {
        width: 100%;
    }
}