/* Bomas child theme: shop-specific CSS. Loaded last, after all AngarTheme CSS. */

/* GLightbox image galleries: darker page overlay */
.goverlay,
.glightbox-mobile .goverlay {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Footer contact block: Google map under the address
   (modules/angarcontact/views/templates/front/angarcontact.tpl) */
.footer-container .block-contact-map iframe {
  display: block;
  width: 100%;
  max-width: 330px;
  height: 235px;
  margin: 4px 0;
  border: 0;
}

/* Left column category tree: the +/- button fills the whole row, also when
   the category name wraps to several lines (AngarTheme: fixed 34px box at the
   top). The row is a grid so the button stretches with the link; the last
   pixel stays free for the link's bottom border. */
.block-categories ul.tree li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
}

.block-categories ul.tree li > a {
  grid-area: 1 / 1 / 2 / 3;
}

.block-categories ul.tree li > .grower {
  grid-area: 1 / 2 / 2 / 3;
  position: static;
  z-index: 1;
  margin-bottom: 1px;
}

.block-categories ul.tree li > ul {
  grid-area: 2 / 1 / 3 / 3;
}

.block-categories li .grower.OPEN:before,
.block-categories li .grower.CLOSE:before {
  height: auto;
}

/* Product cards (templates/catalog/_partials/miniatures/product.tpl) */

/* No frame around the cards (AngarTheme "border type 1"). The border stays in
   place but transparent, so the spacing and the hover shadow are unchanged. */
.pl_border_type1 div#content-wrapper .products .product-miniature {
  border-color: transparent;
}

/* Brand line: always exactly one line, so the name, description, price and
   button start at the same height in every card of a row. Cards without a
   brand keep the empty line; a brand that doesn't fit ends with "...". */
.products .product-miniature .pl_manufacturer {
  min-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Product name: two lines as in AngarTheme, a longer name ends with "...".
   The gap below replaces the row of review stars removed from the card. */
.products .product-miniature .product-title {
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* No stock badge ("Rendelhető" / "Available to order") on the product photo,
   neither on the cards nor on the product page: the availability line under
   the button already says it. Other badges (new, discount, pack) stay. */
a.product-flags-plist span.product-flag.out_of_stock,
.product-flags .product-flag.out_of_stock {
  display: none;
}

/* Card bottom: price, availability, then the add-to-cart button (AngarTheme
   prints the availability last). The list view of a category keeps
   AngarTheme's own layout: `order` does nothing in a block container. */
div#content-wrapper .products .product-miniature .product-bottom {
  display: flex;
  flex-direction: column;
}

div#content-wrapper .product_show_list .products .product-miniature .product-bottom {
  display: block;
}

div#content-wrapper .products .product-miniature .product-price-and-shipping {
  order: -2;
}

div#content-wrapper .products .product-miniature .availability {
  order: -1;
  margin-bottom: 6px;
}

div#content-wrapper .product_show_list .products .product-miniature .availability {
  margin-bottom: 0;
}

/* Home page: popular and new products below each other instead of tabs
   (templates/index.tpl). The sections keep the modules' "tab-pane fade"
   classes, which hide them until a tab is clicked. */
#index .bomas-home-products > .tab-pane {
  display: block;
  opacity: 1;
}

#index .bomas-home-products > .tab-pane + .tab-pane {
  margin-top: 30px;
}

/* More air between the rows of cards (grid view: home page, categories,
   search, related products). The list view keeps AngarTheme's spacing.
   !important because AngarTheme sets `margin-bottom: initial !important`
   on .product-miniature. */
div#content-wrapper .products .product-miniature {
  margin-bottom: 20px !important;
}

div#content-wrapper .product_show_list .products .product-miniature {
  margin-bottom: 0 !important;
}

/* Zero price is not shown (miniatures/product.tpl, product-prices.tpl). On
   grid cards an empty price line keeps the button level with the cards that
   have a price; the list view and the product page need no placeholder. */
div#content-wrapper .product_show_list .products .product-miniature .bomas-no-price,
.product-prices.bomas-no-price {
  display: none;
}
