/* GreenDecor mobile layout polish. Presentation only. */
@media (max-width: 767px) {
  /* Keep all three catalogue actions on one stable row. */
  .product-grid .product-thumb .cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    gap: 5px;
    align-items: center;
    margin: 0 8px 10px !important;
  }
  .product-grid .product-thumb .cart > button,
  .product-grid .product-thumb .cart > button + button {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .product-grid .product-thumb .cart .add_to_cart {
    padding: 0 4px !important;
    overflow: hidden;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .product-grid .product-thumb .cart .add_to_cart i { margin-right: 3px; }
  .product-grid .product-thumb .cart .quick_order,
  .product-grid .product-thumb .cart .wishlist {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Compact the first mobile header row and remove delayed-looking gaps. */
  #top { margin-bottom: 6px !important; }
  header > .container:first-child > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  header #logo {
    display: flex;
    min-height: 40px;
    margin: 0 !important;
    align-items: center;
  }
  header #logo a { display: block; width: 100%; }
  header #logo img {
    display: block;
    width: 100%;
    max-width: 125px;
    height: auto;
    margin: 0 !important;
  }
  header #phone .phone {
    margin: 0 !important;
    padding: 0 !important;
  }
  header #phone .phone > div:first-child {
    height: 40px;
    overflow: hidden;
    line-height: 40px;
    white-space: nowrap;
  }
  header #cart { margin: 0 !important; }
  header #div_search {
    height: auto !important;
    min-height: 0 !important;
  }
  header #search { margin: 4px 0 8px !important; }
  header > .container:nth-child(2) #menu { margin-bottom: 8px !important; }
}
