/* =========================================================
   CLASSIC — LARGURA TOTAL E GRELHA DE PRODUTOS
   ========================================================= */

/* Conteúdo mais largo */
@media (min-width: 1200px) {
    #wrapper > .container,
    #header .header-top > .container,
    #header .header-nav > .container,
    #footer > .container {
        width: 100%;
        max-width: 1900px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Grelha */
.products.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    margin-left: -6px;
    margin-right: -6px;
}

/*
 * IMPORTANTE:
 * No Classic, a coluna exterior chama-se .product.
 * O .product-miniature é apenas o cartão interior.
 */
.products.row > .product {
    float: none;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

/* Grelha responsiva de produtos */
@media (min-width: 1200px) {
  .products.row > .product {
    flex: 0 0 14.285714%;
    width: 14.285714%;
    max-width: 14.285714%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .products.row > .product {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .products.row > .product {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
  }
}

@media (max-width: 767px) {
  .products.row > .product {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Cartão ocupa toda a coluna */
.products .product-miniature,
.products .product-miniature .thumbnail-container {
    width: 100%;
    max-width: none;
}

/* Cartão mais moderno */
.products .product-miniature .thumbnail-container {
    height: 100%;
    margin: 0;
    padding: 7px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.products .product-miniature .thumbnail-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.11);
}

/* Área da imagem */
.products .product-miniature .product-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.products .product-miniature .product-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Texto deixa de ficar sobreposto */
.products .product-miniature .product-description {
    position: relative;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 9px 3px 5px;
    background: #fff;
}


/* Preço */
.products .product-miniature .product-price-and-shipping {
    min-height: 28px;
    margin-top: 5px;
    text-align: left;
}

.products .product-miniature .price {
    color: #111;
    font-size: 17px;
    font-weight: 700;
}

/* Informação que aparece ao passar o rato */
.products .product-miniature .highlighted-informations {
    position: relative;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 3px 0;
    box-shadow: none;
}

/* Mobile */
@media (max-width: 767px) {
    .products .product-miniature .thumbnail-container {
        padding: 5px;
    }

    .products .product-miniature .product-title a {
        font-size: 12px;
        line-height: 17px;
    }

    .products .product-miniature .price {
        font-size: 15px;
    }
}

/* =========================================================
   SUBCATEGORIAS — 6 POR LINHA, MAIS COMPACTAS
   ========================================================= */

/* A lista das subcategorias */
#subcategories ul,
.subcategories ul {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
    padding-left: 0 !important;
}

/* Cada subcategoria */
#subcategories ul li,
.subcategories ul li {
    list-style: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

/* 6 por linha */
@media (min-width: 1200px) {
    #subcategories ul li,
    .block-categories ul li,
    .subcategories ul li {
        width: 16.666667% !important;
        max-width: 16.666667% !important;
        flex: 0 0 16.666667% !important;
    }
}

/* 4 por linha */
@media (min-width: 768px) and (max-width: 1199px) {
    #subcategories ul li,
    .block-categories ul li,
    .subcategories ul li {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }
}

/* 2 por linha no telemóvel */
@media (max-width: 767px) {
    #subcategories ul li,
    .block-categories ul li,
    .subcategories ul li {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Caixa interior */
#subcategories .subcategory-block,
#subcategories .subcategory-image,
#subcategories .subcategory-name,
.subcategories .subcategory-block {
    text-align: center !important;
}

/* Reduzir altura e espaços */
#subcategories .subcategory-block,
.subcategories .subcategory-block {
    padding: 4px 4px 2px !important;
    min-height: auto !important;
}

/* Imagem / miniatura mais baixa */
#subcategories .subcategory-image,
.subcategories .subcategory-image {
    margin-bottom: 4px !important;
}

#subcategories .subcategory-image img,
.subcategories .subcategory-image img {
    max-height: 36px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Nome mais pequeno e mais junto */
#subcategories .subcategory-name,
#subcategories .subcategory-name a,
.subcategories .subcategory-name,
.subcategories .subcategory-name a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #16a7d9 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}

/* Tirar espaços verticais excessivos */
#subcategories,
.subcategories {
    margin-bottom: 10px !important;
}

#subcategories h2,
.subcategories h2 {
    margin-bottom: 10px !important;
}


/* =========================================================
CATEGORIA + SUBCATEGORIAS NA MESMA CAIXA
4 destaques com imagem + restantes links em 2 colunas
========================================================= */

.category-with-subcategories {
  padding: 24px;
}

.category-subcategories-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

/* Primeiras 4 categorias com imagem */
.featured-subcategories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featured-subcategory {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: #232323;
  text-align: center;
  text-decoration: none;
}

.featured-subcategory-image {
  display: flex;
  width: 100%;
  height: 150px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.featured-subcategory-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-subcategory-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.15);
}

.featured-subcategory-name {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.featured-subcategory:hover .featured-subcategory-name {
  text-decoration: underline;
}

/* Restantes categorias em duas colunas */
.text-subcategories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
  align-content: start;
}

.subcategory-text-link {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 2px 6px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  color: #111;
  font-size: 14px;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.subcategory-text-link.image-left {
  justify-content: flex-start;
}

.subcategory-text-link.image-right {
  justify-content: flex-end;
}

.subcategory-text-name {
  flex: 1;
  text-align: center;
  line-height: 1;
}

.subcategory-small-image {
  display: flex;
  flex: 0 0 30px;
  width: 30px;
  height: 26px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subcategory-small-image img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  transform: scale(1.35);
}

.subcategory-text-link,
.subcategory-text-link:hover,
.subcategory-text-link:focus {
  color: #111;
  text-decoration: none;
}

.subcategory-text-link:hover {
  border-color: #999;
  background: #f7f7f7;
}

/* Tablet */
@media (max-width: 991px) {
  .category-subcategories-layout {
    grid-template-columns: 1fr;
  }

  .text-subcategories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Telemóvel */
@media (max-width: 767px) {
  .category-with-subcategories {
    padding: 16px;
  }

  .featured-subcategories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .text-subcategories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subcategory-text-link {
    min-height: 22px;
    padding: 1px 3px;
  }

/* Imagens no telemóvel */
.subcategory-small-image {
  flex-basis: 27px;
  width: 27px;
  height: 24px;
  overflow: hidden;
}

.subcategory-small-image img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transform: scale(1.35);
}
}

/* Slider ps_imageslider em toda a largura do monitor */
body#index #carousel {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
}

body#index #carousel .carousel-inner,
body#index #carousel .carousel-item,
body#index #carousel figure {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#index #carousel img {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}

/* Banner ps_banner a ocupar 100% da largura do monitor */
body#index .banner {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
}

/* Link e imagem ocupam toda a largura */
body#index .banner a {
  display: block !important;
  width: 100% !important;
}

body#index .banner img {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}

/* =========================================================
   MAIS VENDIDOS — 7 PRODUTOS POR LINHA
   ========================================================= */

body#index section.best-sellers > .products {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
}

body#index section.best-sellers > .products > .js-product.product {
  float: none !important;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#index section.best-sellers .product-miniature,
body#index section.best-sellers .thumbnail-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* 5 por linha em ecrãs médios */
@media (min-width: 992px) and (max-width: 1199px) {
  body#index section.best-sellers > .products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* 4 por linha em tablet */
@media (min-width: 768px) and (max-width: 991px) {
  body#index section.best-sellers > .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* 2 por linha no telemóvel */
@media (max-width: 767px) {
  body#index section.best-sellers > .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}


.abrigos-premium {
  width: 100vw;
  max-width: none;

  margin: 3px 0 3px 50%;
  padding: 3px max(18px, calc((100vw - 1240px) / 2));

  transform: translateX(-50%);
  box-sizing: border-box;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 8% 50%,
      rgba(204, 178, 104, 0.17),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 40%,
      rgba(104, 153, 90, 0.18),
      transparent 25%
    ),
    linear-gradient(
      120deg,
      #102719 0%,
      #1c472b 48%,
      #0d2115 100%
    );
}

.abrigos-premium-inner {
  min-height: 182px;

  display: grid;
  grid-template-columns: 0.72fr 2.28fr;
  gap: 22px;
  align-items: stretch;
}

/* Título lateral */

.abrigos-premium-heading {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 18px 20px 18px 4px;
  text-align: left;
}

.abrigos-premium-heading::after {
  content: "";

  position: absolute;
  top: 20px;
  right: 0;
  bottom: 20px;

  width: 1px;

  background:
    linear-gradient(
      transparent,
      rgba(222, 196, 122, 0.7),
      transparent
    );
}

.abrigos-premium-heading > span {
  display: block;

  margin: 0 0 6px;

  color: #d9be72;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.abrigos-premium-heading h2 {
  margin: 0 0 8px;

  color: #ffffff;

  font-size: 25px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.35px;
}

.abrigos-premium-heading p {
  margin: 0;

  color: rgba(255, 255, 255, 0.8);

  font-size: 13px;
  line-height: 1.45;
}

/* Grelha das três caixas */

.abrigos-premium-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  padding: 10px 0;
}

/* Caixa base */

.abrigos-premium-item {
  position: relative;
  isolation: isolate;

  min-width: 0;
  min-height: 162px;

  display: flex;
  align-items: flex-end;

  padding: 18px 17px;

  border: 1px solid rgba(215, 190, 119, 0.42);
  border-radius: 14px;

  background-color: #f4f5ef;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  overflow: hidden;
}

/* Imagens individuais */

.abrigos-premium-item.premium-help {
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 247, 241, 0.90) 0%,
      rgba(247, 247, 241, 0.72) 42%,
      rgba(247, 247, 241, 0.3) 100%
    ),
    url("https://icetone.net/master/img/cms/apoio.jpg");

  background-position: center right;
}

.abrigos-premium-item.premium-delivery {
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 247, 241, 0.90) 0%,
      rgba(247, 247, 241, 0.72) 42%,
      rgba(247, 247, 241, 0.10) 100%
    ),
    url("https://icetone.net/master/img/cms/entrega.jpg");

  background-position: center right;
}

.abrigos-premium-item.premium-payment {
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 247, 241, 0.90) 0%,
      rgba(247, 247, 241, 0.72) 42%,
      rgba(247, 247, 241, 0.10) 100%
    ),
    url("https://icetone.net/master/img/cms/pagamento.jpg");

  background-position: center right;
}

/* Linha dourada superior */

.abrigos-premium-item::before {
  content: "";

  position: absolute;
  z-index: 2;

  top: 0;
  left: 18px;
  right: 18px;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #d0ad51,
      transparent
    );
}

/* Sombra suave para reforçar leitura */

.abrigos-premium-item::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 55%
    );
  pointer-events: none;
}

/* Retirar totalmente os antigos ícones */

.abrigos-premium-icon {
  display: none !important;
}

/* Conteúdo das caixas */

.abrigos-premium-content {
  position: relative;
  z-index: 3;

  width: 72%;
  min-width: 0;

  padding: 12px 13px;

  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.08);

  box-shadow:
    0 3px 10px rgba(20, 45, 25, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.abrigos-premium-content h3 {
  margin: 0 0 5px;

  color: #0d1c13;

  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

.abrigos-premium-content p {
  margin: 0 0 7px;

  color: #1f3025;

  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 500;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.28);
}

.abrigos-premium-content span {
  display: inline-block;

  color: #23652b;

  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.30);
}

/* Efeito subtil ao passar o rato */

.abrigos-premium-item {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-size 0.35s ease;
}

.abrigos-premium-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Tablet */

@media (max-width: 1050px) {
  .abrigos-premium-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .abrigos-premium-heading {
    padding: 15px 5px 10px;
    text-align: center;
  }

  .abrigos-premium-heading::after {
    display: none;
  }

  .abrigos-premium-heading p {
    max-width: 680px;
    margin: 0 auto;
  }

  .abrigos-premium-benefits {
    padding: 4px 0 10px;
  }

  .abrigos-premium-content {
    width: 78%;
  }
}

/* Telemóvel */

@media (max-width: 767px) {
  .abrigos-premium {
    width: 100vw;

    margin: 3px 0 3px 50%;
    padding: 3px 12px;

    transform: translateX(-50%);
  }

  .abrigos-premium-heading {
    padding: 14px 4px 10px;
  }

  .abrigos-premium-heading h2 {
    font-size: 22px;
  }

  .abrigos-premium-heading p {
    font-size: 12.5px;
  }

  .abrigos-premium-benefits {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .abrigos-premium-item {
    min-height: 170px;
    padding: 14px;

    background-position: center right;
  }

  .abrigos-premium-content {
    width: 80%;
    padding: 11px 12px;
  }

  .abrigos-premium-content h3 {
    font-size: 16px;
  }

  .abrigos-premium-content p {
    font-size: 12px;
  }
}

/* Telemóveis muito estreitos */

@media (max-width: 420px) {
  .abrigos-premium-content {
    width: 88%;
  }

  .abrigos-premium-item.premium-help,
  .abrigos-premium-item.premium-delivery,
  .abrigos-premium-item.premium-payment {
    background-image:
      linear-gradient(
        rgba(247, 247, 241, 0.84),
        rgba(247, 247, 241, 0.84)
      );
  }
}

/* TELEFONES CABECALHO ABRIGOS */
.header-phone-block {
  line-height: 1.15;
}

.header-phone-main {
  font-size: 14px;
  white-space: nowrap;
}

.header-phone-main a {
  color: inherit;
  text-decoration: none;
}

.header-phone-main a:hover {
  text-decoration: underline;
}

.header-phone-legal {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.75;
}

.phone-separator {
  margin: 0 5px;
}

@media (max-width: 767px) {
  .header-phone-main {
    font-size: 12px;
    white-space: normal;
  }

  .header-phone-legal {
    font-size: 9px;
  }
}

.footer-phone-block {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-phone-block + br {
  display: none !important;
}

.footer-phone-block + p,
.footer-phone-block + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================================
   MENU PREMIUM — ABRIGOS.PT
   ========================================================= */

/* Menu principal: mais espaço, letra elegante e transição */
#_desktop_top_menu .top-menu[data-depth="0"] > li > a {
    padding-left: 16px;
    padding-right: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Cor e linha inferior ao passar o rato */
#_desktop_top_menu .top-menu[data-depth="0"] > li:hover > a,
#_desktop_top_menu .top-menu[data-depth="0"] > li.current > a {
    color: #356b2f;
    border-bottom-color: #356b2f;
}

/* Dropdown mais elegante e compacto */
#_desktop_top_menu .top-menu .sub-menu {
    padding: 18px 24px;
    border-top: 2px solid #356b2f;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Títulos das colunas do dropdown */
#_desktop_top_menu .top-menu .sub-menu .category > a,
#_desktop_top_menu .top-menu .sub-menu > ul > li > a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Cabeçalho ligeiramente mais compacto */
#header .header-top {
    padding-top: 10px;
    padding-bottom: 10px;
}

#header .header-top .position-static {
    min-height: auto;
}

/* Pesquisa mais limpa e premium */
#search_widget form input {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search_widget form input:focus {
    border-color: #356b2f;
    box-shadow: 0 0 0 2px rgba(53, 107, 47, 0.12);
    outline: none;
}
@media (max-width: 767px) {
  .product-description-wide {
    width: 100%;
    margin-top: 20px;
  }
}

/* =========================================================
   SLIDER RESPONSIVO
   ========================================================= */

#carousel .carousel-inner,
#carousel .carousel-item {
  height: auto !important;
}

#carousel .carousel-item figure {
  display: block !important;
  width: 100% !important;
}

#carousel .carousel-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}


/* =========================================================
   DESCRIÇÃO LARGA DO PRODUTO
   ========================================================= */

.product-description-wide {
  width: 90%;
  max-width: 1400px;
  margin: 35px auto 0;
  clear: both;
}

.product-description-wide .tab-content {
  width: 100%;
}

#main .product-description-wide,
#main .product-description-wide.tabs,
#main .product-description-wide .tab-content,
#main .product-description-wide .tab-pane,
#main .product-description-wide .product-description {
  background: transparent !important;
  box-shadow: none !important;
}

#main .product-description-wide {
  padding: 20px 0 !important;
  border-top: 1px solid #d8d8d8;
}

@media (max-width: 767px) {
  .product-description-wide {
    width: 100%;
    margin-top: 20px;
  }
}


/* =========================================================
   TÍTULOS DOS PRODUTOS — MÁXIMO DE 4 LINHAS
   ========================================================= */

#products .products .product-miniature .product-title,
.featured-products .products .product-miniature .product-title,
.products .product-miniature .product-title {
  display: block !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
}

#products .products .product-miniature .product-title a,
.featured-products .products .product-miniature .product-title a,
.products .product-miniature .product-title a {
  display: -webkit-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 19px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
}

@media (max-width: 767px) {
  #products .products .product-miniature .product-title,
  .featured-products .products .product-miniature .product-title,
  .products .product-miniature .product-title {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }

  #products .products .product-miniature .product-title a,
  .featured-products .products .product-miniature .product-title a,
  .products .product-miniature .product-title a {
    max-height: 68px !important;
    font-size: 12px !important;
    line-height: 17px !important;
  }
}


/* Texto antes do widget Alma */
#alma-widget-payment-plans-main-container::before {
    content: "Pague agora ou em 2 ou 3 prestações com";
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

#alma-widget-payment-plans-main-container::before {
    margin-bottom: 10px;
    line-height: 1.35;
}

#alma-widget-payment-plans-main-container {
    padding: 12px;
}

/* Produtos visualizados e produtos da mesma categoria: 7 por linha */
@media (min-width: 1200px) {
  #product .products-7-per-row {
    flex: 0 0 14.285714% !important;
    width: 14.285714% !important;
    max-width: 14.285714% !important;
  }
}

/* Tablet: 4 por linha */
@media (min-width: 768px) and (max-width: 1199px) {
  #product .products-7-per-row {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
  }
}

/* Telemóvel: 2 por linha */
@media (max-width: 767px) {
  #product .products-7-per-row {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
}

